#ifndef _SkyBox_H_
#define _SkyBox_H_

#include <d3dx9.h>

struct SKYBOXVERTEX
{
	D3DXVECTOR3 pos;
	D3DXVECTOR3 UV;
};

class SkyBox
{
public:

	SkyBox();
	~SkyBox();

	bool Create( IDirect3DDevice9 *pkDevice );
	void Update( unsigned int dt );
	void Render();
	void Release();

private:

	bool MakeBuffer();
	int InitSkyBoxVB();
	int InitSkyBoxIB();

	IDirect3DDevice9		*m_pkDevice;
	IDirect3DVertexBuffer9	*m_pkVB;
	IDirect3DIndexBuffer9	*m_pkIB;
	IDirect3DCubeTexture9	*m_pkCubeTexture;

	UINT m_uiFVF;
	
	D3DXMATRIXA16	m_matworld;

};


#endif // _SkyBox_H_